#setLocal(customJs=['/js/project/project.js'])
#@layout() #define main()
<article class="cl pd-20">
	<form id="projectQuery" action="#(ctx)/project/childMenu" method="post">
		<input type="hidden" name="pageIndex" id="pageIndex" value="1">
		<div class="text-c">
			<span class="select-box inline"> <select name="project.menuId" class="select">
				#for(m:childMenus)
					<option value="#(m.id)" #if(currentMenuId==m.id) selected #end>#(m.name)</option>
				#end
			</select>
			</span> 
			<button class="btn btn-success" type="button" onclick="admin_project.query();">
				<i class="Hui-iconfont"></i> 查询案例
			</button>
		</div>
	</form>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l">
			<a class="btn btn-primary radius" data-title="添加案例	"
			_href="article-add.html"
			onclick="admin_project.projectAdd('添加案例','#(ctx)/project/adddProjectPage')" href="javascript:;"><i
				class="Hui-iconfont"></i> 添加案例	</a>
		</span> <span class="r">共有数据：<strong>#(pageProject.totalRow)</strong> 条
		</span>
	</div>
	<div class="mt-20">
		<div id="DataTables_Table_0_wrapper"
			class="dataTables_wrapper no-footer">
<!-- 			<div class="dataTables_length" id="DataTables_Table_0_length">
				<label>显示 <select name="DataTables_Table_0_length"
					aria-controls="DataTables_Table_0" class="select"><option
							value="10">10</option>
						<option value="25">25</option>
						<option value="50">50</option>
						<option value="100">100</option></select> 条
				</label>
			</div> -->
<!-- 			<div id="DataTables_Table_0_filter" class="dataTables_filter">
				<label>从当前数据中检索:<input type="search" class="input-text "
					aria-controls="DataTables_Table_0"></label>
			</div> -->
			<table
				class="table table-border table-bordered table-bg table-hover table-sort dataTable no-footer"
				id="DataTables_Table_0" role="grid"
				aria-describedby="DataTables_Table_0_info">
				<thead>
					<tr class="text-c" role="row">
						<th width="25" class="sorting_disabled" rowspan="1" colspan="1"
							aria-label="" style="width: 25px;"><input type="checkbox"
							name="" value=""></th>
						<th width="80" class="sorting_desc" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							aria-sort="descending" aria-label="ID: 升序排列" style="width: 80px;">ID</th>
						<th class="sorting" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							aria-label="标题: 升序排列" style="width: 400px;">案例图片</th>
						<th width="80" class="sorting" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							aria-label="分类: 升序排列" style="width: 80px;">案例名称</th>
						<th width="80" class="sorting" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
							aria-label="来源: 升序排列" style="width: 80px;">所属菜单</th>
						<th width="75" class="sorting" tabindex="0"
							aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 75px;">创建日期</th>
						<th width="120" class="sorting_disabled" rowspan="1" colspan="1"
							aria-label="操作" style="width: 120px;">操作</th>
					</tr>
				</thead>
				<tbody>
					#for(p:pageProject.getList())		
						<tr class="text-c odd" role="row">
							<td><input type="checkbox" value="" name=""></td>
							<td class="sorting_1">#(p.id)</td>
							<td class="text-l">
								<img height="40px" src="#(p.showUrl)"/></td>
							<td>#(p.name)</td>
							#for(m:childMenus)
							#if(m.id==p.menuId)
								#set(mname=m.name)
							#end
							#end
							<td class="td-status"><span class="label label-success radius">#(mname)</span></td>
							<td>#(p.createDate)</td>
							<td class="f-14 td-manage">
								<a style="text-decoration: none" onclick="admin_project.article_shenhe('#(ctx)/project/projectDetail/#(p.id)')" href="javascript:;" title="查看">查看</a> 
								<a style="text-decoration: none" class="ml-5" onclick="admin_project.article_del('#(ctx)/project/deleteProject/#(p.id)')" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a></td>
						</tr>
					#end
				</tbody>
			</table>
			<div class="dataTables_info" id="DataTables_Table_0_info"
				role="status" aria-live="polite">第#(pageProject.pageNumber)页，共#(pageProject.totalPage)页</div>
			<!--分页-->
			#@paginate(pageProject.pageNumber, pageProject.totalPage, "admin_project.query(this);","admin_project.query(this);")
		</div>
	</div>
</article>
#end
